<style>
    body {
        background-color: #f9f9f9;
    }

    .xh-form tr td {
        padding: 5px 10px 5px 0 !important;
    }

    #ks td {
        text-align: center;
    }

    label {
        font-weight: normal;
    }
</style>
<script>
    {% if transData %}
    var transData ={{ transData }}
    {% endif %}
</script>
<table style="width: 100%">
    <tbody>
    <tr>
        <td style="height: 360px">
            <form id="xh_form" class="xh-form" method="post" style="margin-left: 20px;height: 100%">
                <div class="smart-widget widget-dark" style="height: 100%;margin: 0px">
                    <div class="smart-widget-inner" style="height: 100%">
                        <div class="widget-tab clearfix">
                            <ul class="tab-bar">
                                <li class="active"><a href="#style3Tab1" data-toggle="tab"> 基本信息</a></li>
                                <li class=""><a href="#style3Tab2" data-toggle="tab"> 培训信息</a></li>
                                <li class=""><a href="#style3Tab3" data-toggle="tab"> 学校电子书包项目组对接信息</a></li>
                                <li class=""><a href="#style3Tab4" data-toggle="tab"> 网络部对接信息</a></li>
                                {% if check %}
                                    <li class=""><a href="#style3Tab5" data-toggle="tab"> 财务部对接信息</a></li>
                                {% endif %}
                            </ul>
                        </div>
                        <div class="smart-widget-body" style="height: 90%">
                            <div class="tab-content">

                                {#<div class="xh-area-form">#}

                                <div class="tab-pane fade in active" id="style3Tab1" style="height: 100%">
                                    <table>
                                        <tr>
                                            <td width="90px"><label>学校名称</label></td>
                                            <td><input name="sSchoolName" readonly></td>
                                            <td width="90px"><label>市场专员</label></td>
                                            <td>
                                                <select type="text" class=" form-control input-sm"  name="iMarketId">
                                                    <option value="" selected style="display: none;">请选择</option>
                                                    {% for id,text in iMarketIds %}
                                                        {% if extra['iMarketId'] is defined and extra['iMarketId'] == id %}
                                                                <option value="{{ id }}" selected>{{ text }}</option>
                                                            {% else %}
                                                                <option value="{{ id }}" >{{ text }}</option>
                                                        {% endif %}
                                                    {% endfor %}
                                                </select>
                                            </td>
                                            <td width="90px"><label>联系方式</label></td>
                                            <td><input name="sMarketPhone"></td>
                                        </tr>
                                        <tr>
                                            <td><label>省</label></td>
                                            {% if extra['province'] is defined %}
                                                    <td ><input name="province" value="{{ extra['province'] }}" readonly ></td>
                                                {% else %}
                                                    <td ><input name="province" readonly  ></td>
                                            {% endif %}
                                            <td><label>市</label></td>
                                            {% if extra['city'] is defined %}
                                                <td ><input name="city" value="{{ extra['city'] }}" readonly ></td>
                                            {% else %}
                                                <td ><input name="city" readonly ></td>
                                            {% endif %}
                                            <td><label>县</label></td>
                                            {% if extra['country'] is defined %}
                                                <td ><input name="country" value="{{ extra['country'] }}" readonly ></td>
                                            {% else %}
                                                <td ><input name="country" readonly  ></td>
                                            {% endif %}
                                        </tr>
                                        <tr>
                                            <td><label>学校地址</label></td>
                                            {% if extra['sSchoolAddress'] is defined %}
                                                <td colspan="3"><input name="sSchoolAddress" value="{{ extra['sSchoolAddress'] }}" readonly ></td>
                                            {% else %}
                                                <td colspan="3"><input name="sSchoolAddress" readonly  ></td>
                                            {% endif %}
                                            <td style="display: none"><input name="iBPLId"></td>
                                            <td style="display: none"><input name="iBPPId"></td>
                                            <td><label>申请时间</label></td>
                                            <td><input class="form-date" name="tApplyDate" class="form-date"></td>
                                        </tr>
                                        <tr>
                                            <td><label>名单确认<font color="red">*</font></label></td>
                                            <td><select name="bVerify">
                                                    <option value="" style="display: none" selected>请选择</option>
                                                    <option value="0">否</option>
                                                    <option value="1">是</option>
                                                </select></td>
                                            <td><label>确认时间<font color="red">*</font></label></td>
                                            <td><input class="form-date" name="tVerifyDate"></td>
                                        </tr>
                                        {% if transInfo is defined %}
                                            <tr>
                                                <td><label>学生人数<font color="red">*</font></label></td>
                                                <td>
                                                    <input name="iStudentNum" type="number">
                                                    {#{% if transInfo['bUpdate'] == 1  %}#}
                                                        {#<div>{{ transInfo['iStudentNum'] }}</div>#}
                                                        {#{% else %}#}
                                                            {#<input name="iStudentNum" type="number">#}
                                                    {#{% endif %}#}
                                                </td>
                                                <td><label>教师人数<font color="red">*</font></label></td>
                                                <td>
                                                    <input name="iTeacherNum" type="number">
                                                    {#{% if transInfo['bUpdate'] == 1  %}#}
                                                        {#<div>{{ transInfo['iTeacherNum'] }}</div>#}
                                                    {#{% else %}#}
                                                        {#<input name="iTeacherNum" type="number">#}
                                                    {#{% endif %}#}

                                                </td>
                                                <td><label>班级数量<font color="red">*</font></label></td>
                                                <td>
                                                    <input name="iClassNum" type="number">
                                                    {#{% if transInfo['bUpdate'] == 1  %}#}
                                                        {#<div>{{ transInfo['iClassNum'] }}</div>#}
                                                    {#{% else %}#}
                                                        {#<input name="iClassNum" type="number">#}
                                                    {#{% endif %}#}
                                                </td>
                                            </tr>
                                            {% else %}
                                                <tr>
                                                    <td><label>学生人数<font color="red">*</font></label></td>
                                                    <td> <input name="iStudentNum" type="number"></td>
                                                    <td><label>教师人数<font color="red">*</font></label></td>
                                                    <td> <input name="iTeacherNum" type="number"></td>
                                                    <td><label>班级数量<font color="red">*</font></label></td>
                                                    <td><input name="iClassNum" type="number"></td>
                                                </tr>
                                        {% endif %}
                                        <tr>
                                            <td><label>入学年份<font color="red">*</font></label></td>
                                            <td>
                                                <select name="sYear[]" multiple="true" style="width: 150px;">
                                                    {% for id,text in sYear %}
                                                        <option value="{{ id }}">{{ text }}</option>
                                                    {% endfor %}
                                                </select>
                                            </td>
                                            {% if transInfo is defined %}
                                                    <td><label>班级<font color="red">*</font></label></td>
                                                    <td>
                                                        {% if transInfo['bUpdate'] == 1  %}
                                                            <div title="{{ transInfo['sClasses'] }}" style="width: 200px;overflow: hidden;text-overflow:ellipsis">{{ transInfo['sClasses'] }}</div>
                                                        {% else %}
                                                            <input name="sClasses" type="text">
                                                        {% endif %}

                                                    </td>
                                                {% else %}
                                                    <td><label>班级<font color="red">*</font></label></td>
                                                    <td><input name="sClasses" type="text"></td>
                                            {% endif %}
                                            <td><label>运营负责人</label></td>
                                            <td>
                                                <select type="text" class=" form-control input-sm"  name="iOperateId">
                                                    <option value="" selected style="display: none;">请选择</option>
                                                    {% for id,text in iOperateIds %}
                                                        {% if extra['iOperateId'] is defined and extra['iOperateId'] == id %}
                                                            <option value="{{ id }}" selected>{{ text }}</option>
                                                        {% else %}
                                                            <option value="{{ id }}" >{{ text }}</option>
                                                        {% endif %}
                                                    {% endfor %}
                                                </select>
                                            </td>
                                        </tr>
                                        {% if applyInfo is defined %}
                                        <tr>
                                            <td>真实学生数目</td>
                                            <td>{{ applyInfo['realStuNum'] }}</td>
                                            <td>真实教师人数</td>
                                            <td>{{ applyInfo['realTchNum'] }}</td>
                                            <td>真实班级数量</td>
                                            <td>{{ applyInfo['realClassNum'] }}</td>
                                            <td style="width: 90px;">真实班级</td>
                                            <td><div title="{{ applyInfo['realClass'] }}" style="width: 200px;overflow: hidden;text-overflow:ellipsis">{{ applyInfo['realClass'] }}</div></td>
                                        </tr>
                                        {% endif %}
                                        <tr>
                                            <td><label>备注</label></td>
                                            <td colspan="5"><textarea rows="2" name="sClassDesc"></textarea></td>
                                        </tr>
                                    </table>
                                </div><!-- ./tab-pane -->
                                <div class="tab-pane fade" id="style3Tab2" style="height: 100%">
                                    <table>
                                        <tr>
                                            <td><label>家长会时间<font color="red">*</font></label></td>
                                            <td><input class="form-date" name="tParentTrain"></td>

                                            <td><label>学生操作培训时间<font color="red">*</font></label></td>
                                            <td><input class="form-date" name="tStuTrain"></td>
                                        </tr>
                                        <tr>
                                        <tr>
                                            <td><label>教师意向培训时间<font color="red">*</font></label></td>
                                            <td><input class="form-date" name="tTechInTrain"></td>

                                            <td><label>教师操作培训时间<font color="red">*</font></label></td>
                                            <td><input class="form-date" name="tTechOpTrain"></td>
                                        </tr>
                                    </table>
                                </div><!-- ./tab-pane -->
                                <div class="tab-pane fade" id="style3Tab3" style="height: 100%">
                                    <table>
                                        <tr>
                                            <td><label>学校负责人<font color="red">*</font></label></td>
                                            <td><input name="sSchChargeName"></td>

                                            <td><label>联系方式<font color="red">*</font></label></td>
                                            <td><input name="sSchChargePhone"></td>
                                            <td><label>上项目时间<font color="red">*</font></label></td>
                                            <td><input class="form-date" name="tRunItemDate"></td>
                                        </tr>
                                        <tr>
                                            <td><label>班主任及联系方式<font color="red">*</font></label></td>

                                        </tr>
                                        <tr>
                                            <td colspan="6"><textarea name="Retian1" rows="2"></textarea></td>
                                        </tr>
                                    </table>
                                </div><!-- ./tab-pane -->
                                <div class="tab-pane fade" id="style3Tab4">
                                    <table>
                                        <tr>
                                            <td><label>学校网络负责人<font color="red">*</font></label></td>
                                            <td><input name="sSchNetChargeName"></td>
                                            <td><label>是否知情<font color="red">*</font></label></td>
                                            <td>
                                                <select name="bKnow" >
                                                    <option value="" style="display: none" selected>请选择</option>
                                                    <option value="0">不知情</option>
                                                    <option value="1">知情</option>
                                                </select>
                                            </td>
                                            <td><label>联系方式<font color="red">*</font></label></td>
                                            <td><input name="sSchNetChargePhone"></td>
                                        </tr>
                                        <tr>
                                            <td><label>学校网络勘测时间<font color="red">*</font></label></td>
                                            <td><input class="form-date" name="tNetTestDate"></td>
                                            <td><label>待改造教室数量<font color="red">*</font></label></td>
                                            <td><input name="iTchRoom" type="number"></td>
                                            <td><label>待改造办公室数量<font color="red">*</font></label></td>
                                            <td><input name="iOfficeNum" type="number"></td>
                                        </tr>
                                        <tr>
                                            <td  valign="middle" ><label>办公室位置<font color="red">*</font></label></td>
                                            <td colspan="5"><textarea rows="3" name="sOfficeAddress"></textarea></td>
                                        </tr>
                                        <tr>
                                            <td ><label>待改造其他场所<font color="red">*</font></label></td>
                                            <td><input name="iOtherNum" type="number"></td>
                                        </tr>
                                        <tr>
                                            <td ><label>其他场所<font color="red">*</font></label></td>
                                            <td colspan="5"><textarea rows="3" name="mOtherAddress"></textarea></td>
                                        </tr>
                                    </table>
                                </div><!-- ./tab-pane -->
                                {% if check %}
                                    <div class="tab-pane fade" id="style3Tab5">
                                        <table style="width: 100%" class="tx">
                                            <tbody>
                                            <tr id="ks">
                                                <td style="width: 80px">年级</td>
                                                <td style="width: 80px">平板型号</td>
                                                <td style="width: 80px">合同期限</td>
                                                <td style="width: 200px">缴费期限</td>
                                                <td style="width: 120px">使用形式</td>
                                                <td style="width: 80px">平板费用</td>
                                                <td style="width: 80px">服务费用</td>
                                                <td style="width: 120px">缴费完成日期</td>

                                            </tr>
                                            <tr>
                                                <td><input name="sGrade[]"></td>
                                                <td><input name="tabletVersion[]"></td>
                                                <td><input name="sContentDate[]"></td>
                                                <td><input name="sPayDate[]"></td>
                                                <td>
                                                    <select name="iChargeMode[]">
                                                        <option value="" style="display: none" selected>请选择</option>
                                                        {% for id,text in iChargeModes %}
                                                            <option value="{{ id }}">{{ text }}</option>
                                                        {% endfor %}
                                                    </select>
                                                </td>
                                                <td><input name="iTabletCost[]"></td>
                                                <td><input name="iServiceCost[]"></td>
                                                <td><input class="form-date" name="tPayedDate[]"></td>
                                            </tr>
                                            <tr>
                                                <td><input name="sGrade[]"></td>
                                                <td><input name="tabletVersion[]"></td>
                                                <td><input name="sContentDate[]"></td>
                                                <td><input name="sPayDate[]"></td>
                                                <td>
                                                    <select name="iChargeMode[]">
                                                        <option value="" style="display: none" selected>请选择</option>
                                                        {% for id,text in iChargeModes %}
                                                            <option value="{{ id }}">{{ text }}</option>
                                                        {% endfor %}
                                                    </select>
                                                </td>
                                                <td><input name="iTabletCost[]"></td>
                                                <td><input name="iServiceCost[]"></td>
                                                <td><input class="form-date" name="tPayedDate[]"></td>
                                            </tr>
                                            <tr>
                                                <td><input name="sGrade[]"></td>
                                                <td><input name="tabletVersion[]"></td>
                                                <td><input name="sContentDate[]"></td>
                                                <td><input name="sPayDate[]"></td>
                                                <td>
                                                    <select name="iChargeMode[]">
                                                        <option value="" style="display: none" selected>请选择</option>
                                                        {% for id,text in iChargeModes %}
                                                            <option value="{{ id }}">{{ text }}</option>
                                                        {% endfor %}
                                                    </select>
                                                </td>
                                                <td><input name="iTabletCost[]"></td>
                                                <td><input name="iServiceCost[]"></td>
                                                <td><input class="form-date" name="tPayedDate[]"></td>
                                            </tr>
                                            <tr>
                                                <td width="90"><label>情况说明</label></td>
                                            </tr>
                                            <tr>
                                                <td colspan="8"><textarea rows="3" name="mStatusDesc"></textarea></td>
                                            </tr>
                                            </tbody>
                                        </table>

                                    </div><!-- ./tab-pane -->
                                {% endif %}

                            </div><!-- ./tab-content -->
                        </div>
                    </div>
                </div><!-- ./smart-widget -->
            </form>
        </td>
    </tr>
    {% if transInfo is defined %}
        {% if transInfo['mOldData']  %}
        <tr style="display: none">
            <td>{{ transInfo['mOldData'] }}</td>
        </tr>
        {% endif %}
    {% endif %}
    <tr>
        <td style="height: 40px">
            <div class="form-group"
                 style="margin-left: 20px;margin-bottom:5px;background-color: #ececec;border: solid 1px #E4e4e4;border-top: 0px;">
                <button type="button" class="btn btn-default " id="btn_copy">复制地址</button>
                <input id="readUrl" value="{{ readUrl }}" readonly style="width: 600px;height:30px;background-color: transparent;border: 0px;">

            </div>
        </td>
    </tr>
    </tbody>
</table>
